package com.air.service;

import com.air.entity.Card;
import com.air.entity.User;

public interface UserService {


    public User selectUserById(long id);

    public User selectUserByName(String name);

    public User selectUserByCardId(String cardId);

    public User selectUserByEmail(String email);

    boolean loginService(String username, String password);

    boolean insertUser(User user, Card card);
    User selectUserByPhone(String phone);

    boolean loginByEmail(String openId, String password);

    boolean loginByIdNumber(String openId, String password);

    boolean loginByPhone(String openId, String password);
}
